<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>player</title>
    <link rel="stylesheet" href="./common.css">

    <link rel="stylesheet" href="./main.css">
</head>
<body>
    <div class="player" id="app">
        <header class="header">
            <img src="./images/player_title.png" alt="">
            <input type="text" class="edit" v-model="query" @keyup.enter="searchSong">
        </header>
        <section class="center">
            <div class="song">
                <ul class="song_list">
                    
                    <li v-for="item in songlist">
                        <a href="javascript:;" @click="playMusic(item.id)"></a>
                        <b>{{item.name}}</b>
                        <span v-if="item.mvid!=0" @click="playMV(item.mvid)">
                            <i ></i>
                        </span>
                    </li>
                </ul>
                <img src="./images/line.png" alt="">
            </div>
            
            <div class="player_image" :class="{playing:isplaying}">
                <img src="./images/player_bar.png" alt="" class="topline">
                <img src="./images/disc.png" alt="" class="disc autoRotate">
                <img :src="musicCover" alt="" class="cover autoRotate">

            </div>
            <div class="comment_area">
                <h5>热门留言</h5>
                <!-- <ul class="com_list">
                    <li class="comment">你抚琵琶奏琴弦，我坐戏子楼台前</li>
                </ul> -->
                <div class="commment_list">
                    <dl v-for="item in commentlist">
                        <dt>
                            <img :src="item.user.avatarUrl" alt="">
                        </dt>
                        <dd class="name">{{item.user.nickname}}</dd>
                        <dd class="detail">{{item.content}}</dd>
                    </dl>
                </div>
                <img src="./images/line.png" alt="" class="right_line">
            </div>
        </section>
        <footer class="audio_con">
            <audio :src="musicUrl"@play="play" @pause="pause" autoplay controls loop class="myaudio"></audio>
        </footer>
        <div class="video_con" v-show="isShow" >
            <video :src="mvurl" controls id="vd"></video>
            <div class="curtain" @click="hide"></div>
        </div>
    </div>
    <!-- 导入 axios在线地址-->
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <!--vue.js 开发版本环境 -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="./main.js"></script>
</body>
</html>